import request from "../../../utils/request";

class App {
  static getAPP = () => request.get('/user')

  static delAPP = async (id) => {
    let res = await request.delete('/user/' + id)
    return { data: [{ message: '删除成功', code: 200 }] }
  }


  static serchApp = async (key) => {
    console.log(key);
    let res = await request.get('/user?q=' + key)
    console.log(res);
    return { data: { data: res.data[0], message: '查询成功', code: 200 } }
  }
}

export default App